package Array.stringmethod;

import java.util.Scanner;

public class Equals1 {
   public static void main(String[] args){
       /* Scanner sc=new Scanner(System.in);
        String s1=sc.nextLine();
        for (int i=0;i<s1.length();i++){
            char c=s1.charAt(i);
            System.out.println(c);
        }*/


      //第2种方法
       Scanner sc =new Scanner(System.in);
       System.out.println("请输入");
       String s=sc.nextLine();
       char[] c=s.toCharArray();
       for (int i=0;i<c.length;i++){
           System.out.println(c[i]);
       }
    }
}
